package cn.edu.scau.cmi.chensixiao.composite.consistent;

import java.util.ArrayList;

public class ConsistentLeaf extends ConsistentComponent {
	@Override
	public String showMessage() {
		return "I'm a Consistent person: "+this.name;

	}
	public ConsistentLeaf(String name) {
		this.name = name;
	}
	public String addChild(ConsistentComponent child) {
		return "个体没有添加成员的操作";
	}
	
	public String delChild(int index) {
		return "个体没有删除成员的操作";
	}
	public ArrayList<ConsistentComponent>getChildren(){
		System.out.println("个体不包含其他成员");
		return null;
		
	}

}
